const app = getApp();

Page({
  data: {
    rate: 1,

    avatarImg: app.getImgUrl('avatar.webp'),
    qrImg: app.getImgUrl('qr.png'),
    img: app.getImgUrl('image.webp'),

  },

  /**
   * 返回
   */
  onBack() {
    wx.navigateBack();
  },

  onChange(event) {
    this.setData({
      rate: event.detail,
    });
  },

  onContact() {
    // 打电话
    wx.makePhoneCall({
      phoneNumber: "13333333333",
    });
  },

  onAppointment() {
    wx.navigateTo({
      url: "/pages/client/fault_list/index",
    });
  },
});
